
/// 用户信息
class ValUserBaseInfoModel {
  String? avatar;
  String? avatarMiddleThumbUrl;
  String? avatarThumbUrl;
  String? avatarUrl;
  String? nickname;

  int age = 0;

  int auditStatus = 0;

  String? birthday;

  String country = '';

  int gender = 1;
  int userType = 1;
  String userId = '';
  int availableCoins = 0;
  List <String> tagsList = [];
  List <Map> tagDetails = [];

  ValUserBaseInfoModel.fromJson(json) {
    if (json['avatar'] is String) {
      avatar = json['avatar'];
    }
    if (json['nickname'] is String) {
      nickname = json['nickname'];
    }
    if (json['avatarMiddleThumbUrl'] is String) {
      avatarMiddleThumbUrl = json['avatarMiddleThumbUrl'];
    }
    if (json['avatarThumbUrl'] is String) {
      avatarThumbUrl = json['avatarThumbUrl'];
    }
    if (json['avatarUrl'] is String) {
      avatarUrl = json['avatarUrl'];
    }
    if (json['birthday'] is String) {
      birthday = json['birthday'];
    }
    if (json['country'] is String) {
      country = json['country'];
    }
    if (json['gender'] is int) {
      gender = json['gender'];
    }
    if (json['gender'] is int) {
      gender = json['gender'];
    }
    if (json['userType'] is int) {
      userType = json['userType'];
    }
    if (json['userId'] is String) {
      userId = json['userId'];
    }
    if (json['tagsList'] is  List) {
      tagsList = List.from(json['tagsList']);
    }
    if (json['tagDetails'] is  List) {
      tagDetails = List.from(json['tagDetails']);
    }
    if (json['auditStatus'] is int) {
      auditStatus = json['auditStatus'];
    }
    if (json['availableCoins'] is int) {
      availableCoins = json['availableCoins'];
    }
  }
}
/*
 {
        "isFirstRegister": false,
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNzM2NjI2OTYxODg4OTY4NzA0IiwidXNlcl90eXBlIjoxLCJleHAiOjQ4NTg2Mzc5NjcsImNyZWF0ZWQiOjE3MDI5NjQzNjc2MDZ9.iEVgrV8bC1Ex1G1NOKbqjqfD-2xiZmBvtHe0lHBjNTh-0vQI1B027xItEptvDz9gvvaljfK5iqpNqTNma86yRg",
        "userInfo": {
            "age": 28,
            "auditStatus": 1,
            "availableCoins": 0,
            "avatar": "avatar/default/male_15.png",
            "avatarMiddleThumbUrl": "http://test-agilecdn.livchat.me/avatar/default/male_15.png?Expires=1706162404&OSSAccessKeyId=LTAI5tNPNT6g1inCHkxgcUGz&Signature=VWyjmV7YsiPzveMJgxcrCN7JZfo%3D&x-oss-process=image%2Fresize%2Cm_lfit%2Ch_480%2Cw_480%2Climit_1",
            "avatarThumbUrl": "http://test-agilecdn.livchat.me/avatar/default/male_15.png?Expires=1706162404&OSSAccessKeyId=LTAI5tNPNT6g1inCHkxgcUGz&Signature=cbPIaHNssjsM7pPdBsQaEmr%2B0ws%3D&x-oss-process=image%2Fresize%2Cm_lfit%2Ch_160%2Cw_160%2Climit_1",
            "avatarUrl": "http://test-agilecdn.livchat.me/avatar/default/male_15.png?Expires=1706162404&OSSAccessKeyId=LTAI5tNPNT6g1inCHkxgcUGz&Signature=X0D82rGUgJLui0CzFMfY04Ew5lQ%3D&x-oss-process=image%2Fresize%2Cm_lfit%2Ch_1080%2Cw_1080%2Climit_1",
            "birthday": "1995-01-01",
            "country": "USA",
            "createTime": 1702879107335,
            "followNum": 0,
            "gender": 1,
            "hasEquity": false,
            "isAnswer": true,
            "isBlock": false,
            "isHavePassword": false,
            "isInternal": false,
            "isMultiple": false,
            "isRecharge": false,
            "isReview": false,
            "isSwitchNotDisturbCall": false,
            "isSwitchNotDisturbIm": false,
            "isVip": false,
            "level": 0,
            "loginPkgName": "test.heeru.ios",
            "nickname": "Gavin",
            "praiseNum": 0,
            "registerCountry": "US",
            "registerPkgName": "test.heeru.ios",
            "rongcloudToken": "k2i7/XBYrrWqpefbusVctdQpogeKatAZnL9go1cwpVBPqFCijGIhc8VaRr5Fi2jp@hw3r.cn.rongnav.com;hw3r.cn.rongcfg.com",
            "tagDetails": [
                {
                    "tag": "NEW",
                    "tagColor": "#24c45d",
                    "tagTip": "Attention: If the call duration is < 40s, you'll not get coins."
                },
                {
                    "tag": "Coinless",
                    "tagColor": "#999999",
                    "tagTip": "Send him a recharge link with discount after the call"
                }
            ],
            "tagsList": [
                "New"
            ],
            "userId": "1736626961888968704",
            "userType": 1
        }
 */